import { createApp } from 'vue'
import App from './App.vue'
import store from './store'
import router from '@/router'
import './permission'

import 'vant/lib/index.css'
import '@/assets/style/index.scss'

const app = createApp(App)
app.use(router)
app.use(store)

import { showToast } from 'vant'
app.config.globalProperties.$toast = showToast

import { useDict } from '@/utils/dict'
app.config.globalProperties.useDict = useDict

// 导入 vConsole
import VConsole from 'vconsole'

import appContainerTabbar from '@/components/app-container-tabbar.vue'
app.component('app-container-tabbar', appContainerTabbar)

// 在开发环境下启用 vConsole
if (process.env.NODE_ENV !== 'production') {
  // new VConsole()
}
app.mount('#app')
